package com.ll.xiaonew.system.modules.job.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ll.xiaonew.system.modules.job.dao.StatisticsInterfaceDao;
import com.ll.xiaonew.system.modules.job.dto.StatisticsInterfaceDto;
import com.ll.xiaonew.system.modules.job.entity.ScheduleJobInterfacecountEntity;
import com.ll.xiaonew.system.modules.job.service.StatisticsInterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author new
 * @date 2023/3/28 17:25
 */
@Service
public class StatisticsInterfaceServiceImpl extends ServiceImpl<StatisticsInterfaceDao, ScheduleJobInterfacecountEntity> implements StatisticsInterfaceService {
    @Autowired
    private StatisticsInterfaceDao statisticsInterfaceDao;

    @Override
    public List<StatisticsInterfaceDto> selectInterfaceCount() {
        List<StatisticsInterfaceDto> list = statisticsInterfaceDao.selectInterfaceCountForDay();
        return list;
    }
}
